<?php global $config; 

$facebookurl=$config->get('magikaccord_fb');
$twitterurl=$config->get('magikaccord_twitter');
$gplusurl=$config->get('magikaccord_gglplus');
$rssurl=$config->get('magikaccord_rss');
$pintresturl=$config->get('magikaccord_pinterest');
$linkedinurl=$config->get('magikaccord_linkedin');
$youtubeurl=$config->get('magikaccord_youtube');
?>
<footer>
  <div class="inner">
    <div class="footer-column-1">
      <h4>Contact us</h4>
       <?php if ($config->get('magikaccord_address')):?>
      <address>
      <i class="add-icon">&nbsp;</i><?php echo $config->get('magikaccord_address'); ?>
      </address>
      <?php endif; ?>

      <?php if ($config->get('magikaccord_phone')) : ?>
      <div class="phone-footer"><i class="phone-icon">&nbsp;</i><?php echo $config->get('magikaccord_phone'); ?></div>
      <?php endif; ?>
      <?php if ($config->get('magikaccord_email')): ?>
      <div class="email-footer"><i class="email-icon">&nbsp;</i> 
        <a href="mailto:<?php echo $config->get('magikaccord_email');?>"><?php echo $config->get('magikaccord_email'); ?></a></div>
      <?php endif; ?>


    </div>
    <div class="footer-column">
      <?php if ($informations) { ?>
      <h4><?php echo $text_information; ?></h4>
      <ul class="links">
        <?php foreach ($informations as $information) { ?>
        <li><a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li>
        <?php } ?>
      </ul>
      <?php } ?>
    </div>
    <div class="footer-column">
      <h4><?php echo $text_service; ?></h4>
      <ul class="links">
        <li><a href="<?php echo $contact; ?>"><?php echo $text_contact; ?></a></li>
        <li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li>
        <li><a href="<?php echo $sitemap; ?>"><?php echo $text_sitemap; ?></a></li>
      </ul>
    </div>
    <div class="footer-column">
      <h4><?php echo $text_extra; ?></h4>
      <ul class="links">
        <li><a href="<?php echo $manufacturer; ?>"><?php echo $text_manufacturer; ?></a></li>
        <li><a href="<?php echo $voucher; ?>"><?php echo $text_voucher; ?></a></li>
        <li><a href="<?php echo $affiliate; ?>"><?php echo $text_affiliate; ?></a></li>
        <li><a href="<?php echo $special; ?>"><?php echo $text_special; ?></a></li>
      </ul>
<!-- <h4><?php echo $text_account; ?></h4>
<ul class="links">
<li><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a></li>
<li><a href="<?php echo $order; ?>"><?php echo $text_order; ?></a></li>
<li><a href="<?php echo $wishlist; ?>"><?php echo $text_wishlist; ?></a></li>
<li><a href="<?php echo $newsletter; ?>"><?php echo $text_newsletter; ?></a></li>
</ul> -->

</div>
<div class="footer-column-last">


    <div class="newsletter">
  <?php if($config->get('magikaccord_newsletter')==1){
  echo html_entity_decode($config->get('magikaccord_newslettercontent'));
  ?><?php }?>
</div>



   <div class="social"><h4>Follow Us</h4>
        <ul class="link">
          <?php if($facebookurl!='') { ?>
          <li class="fb"><a href="<?php echo $facebookurl; ?>" target="_blank"></a></li>
          <?php } ?>
          <?php if($twitterurl!='') { ?>
          <li class="tw"><a href="<?php echo $twitterurl; ?>" target="_blank"></a></li>
          <?php } ?>
          <?php if($gplusurl!='') { ?>
          <li class="googleplus"><a href="<?php echo $gplusurl; ?>" target="_blank"></a></li>
          <?php } ?>
          <?php if($rssurl!='') { ?>
          <li class="rss"><a href="<?php echo $rssurl; ?>" target="_blank"></a></li>
          <?php } ?>
          <?php if($pintresturl!='') { ?>
          <li class="pintrest"><a href="<?php echo $pintresturl; ?>" target="_blank"></a></li>
          <?php } ?>
          <?php if($linkedinurl!='') { ?>
          <li class="linkedin"><a href="<?php echo $linkedinurl; ?>" target="_blank"></a></li>
          <?php } ?>
          <?php if($youtubeurl!='') { ?>
          <li class="youtube"><a href="<?php echo $youtubeurl; ?>" target="_blank"></a></li>
          <?php } ?>
        </ul>
      </div>

</div>

</div>

<div class="footer-bottom">
  <div class="inner">
    <div class="coppyright">
        <?php
        if(trim($config->get('magikaccord_powerby')) != '') {
          echo html_entity_decode($config->get('magikaccord_powerby'));
        } else {
          echo $powered;
        }
        ?>
        </div> 
    <div class="payment-accept">
<div><img alt="payment1" src="catalog/view/theme/accord/image/payment-1.png"> <img alt="payment2" src="catalog/view/theme/accord/image/payment-2.png"> <img alt="payment3" src="catalog/view/theme/accord/image/payment-3.png"> <img alt="payment4" src="catalog/view/theme/accord/image/payment-4.png"></div>
</div>
  </div>
</div>

<div id="mgkquickview">
<div id="magikloading" style="display:none;text-align:center;margin-top:400px;"><img src="catalog/view/theme/accord/image/loading.gif" alt="loading">
</div></div>
</footer>

<div class="orange-slider">
  <div class="text alignleft">Need Help?</div>
  <div class="icons">
    <a href="javascript:void(0)" id="questionbox-side-phonebutton" class="show_hide"><i class="icon-phones"></i></a>
  </div> <!--icons-->
</div>

  <div style="text-align: left; display: none;" id="hideShow">
  <div class="right-side-content hidden1">
  <div class="slider-phone active">
  <h2><?php echo $config->get('magikaccord_needhelptitle'); ?></h2>
  <p class="textcenter"><?php echo html_entity_decode($config->get('magikaccord_needhelpcontent')); ?><br> <span class="phone-number"><?php echo $config->get('magikaccord_phone'); ?></span></p>
  </div> 
  <a class="slider-close" id="hideDiv" href="javascript:void(0)"></a>
  </div>
  </div>

<script type="text/javascript">

jQuery('.show_hide').click(function(){
            jQuery("#hideShow").show(); 
        });

jQuery('#hideDiv').click(function(){
            jQuery("#hideShow").hide(); 
        });

</script>

<!--
OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but its generally accepted practise to make a small donation.
Please donate via PayPal to donate@opencart.com
//--> 

<?php if($config->get('magikaccord_scroll_totop') == 1) { ?>   
<!-- Theme created by Welford Media for OpenCart 2.0 www.welfordmedia.co.uk -->
<!-- child of the body tag -->
<span id="top-link-block" class="hidden">
    <a href="#top" class="well well-sm" onclick="$('html,body').animate({scrollTop:0},'slow');return false;">
        <i class="glyphicon glyphicon-chevron-up"></i> Back to Top
    </a>
</span><!-- /top-link-block -->
<script>
// Only enable if the document has a long scroll bar
// Note the window height + offset
if ( ($(window).height() + 100) < $(document).height() ) {
    $('#top-link-block').removeClass('hidden').affix({
        // how far to scroll down before link "slides" into view
        offset: {top:100}
    });
}
</script>

<?php } ?>

<style>
#top-link-block.affix-top {
    position: absolute; /* allows it to "slide" up into view */
    bottom: -82px;
    left: 10px;
}
#top-link-block.affix {
    position: fixed; /* keeps it on the bottom once in view */
    bottom: 18px;
    left: 10px;
}
</style>
</body></html>